<?php

class OperationDiv extends Operation
{
    function getResult() {
        if ($this->data['b'] == 0) {
            throw new ErrorException('除数不能为0');
        }
        return $this->data['a'] / $this->data['b'];
    }
}